<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="icon" type="text/css" href="icon.ico" />

    <?php foreach($conf['css'] as $k=>$v){ ?>
    <link rel="stylesheet" type="text/css" href="/shop/shop/Public/Home/css/<?php echo ($v); ?>.css" />
    <?php }?>

    <script src="/shop/shop/Public/Home/js/jquery-1.10.1.min.js" type="text/javascript" charset="utf-8"></script>

    <?php foreach($conf['js'] as $k=>$v){ ?>
    <script src="/shop/shop/Public/Home/js/<?php echo ($v); ?>.js" type="text/javascript" charset="utf-8"></script>
    <?php }?>

</head>

<body>
<!--头部开始-->
<div id="top">
    <!--头部灰条就开始-->
    <div class="topbox">
        <div class="main">
            <div class="topleft fl">
                <a href="javascript:;">欢迎来到冰雨商城</a>
                <a href="<?php echo U('Home/Index/index');?>">商城首页</a>
                <a href="#">收藏本站</a>
                <a href="#">帮助中心</a>
                <a href="#" class='last'><i></i>手机商城</a>
            </div>
            <div class="topright fr">
                <div class="login fl">
                    <a href="<?php echo U('Home/Login/index');?>">登录</a>
                    <a href="<?php echo U('Home/Login/register');?>">注册</a>
                </div>
                <span class="fl">|</span>
                <div class="fcode fl">

                    <a href="<?php echo U('Home/Cart/index');?>">我的订单</a>
                </div>
            </div>
        </div>
    </div>
    <!--头部灰条结束-->

    <!--logo区域开始-->
    <div class="logoRegion">
        <div class="main">
            <div class="logo">
                <a href=""><img style="width: 200px;height: 100px;" src="/shop/shop/Public/Home/logo.png"/></a>
            </div>
            <div class="seachRegion">
                <div class="seach fl">
                    <form action="" method="post">
                        <input type="text" class="seachtxt fl" value="新品上市" />
                        <input type="submit" class="btn" value="" />
                    </form>
                    <p class="searchkey">
                        <a href="">四六级耳机低至5折</a>
                        <a href="">四六级耳机低至5折</a>
                        <a href="">四六级耳机低至5折</a>
                    </p>

                </div>
                <div class="topshopcart fr" style="">
                    <a href="" class="header-cart"><i></i>我的购物车<span class="cart-size">(<?php echo ($cart_goods_num); ?>)</span></a>
                    <div class="cart-tips" style="margin: 0px;padding: 0px;text-align: center;height: auto">
                       <?php if(isset($_SESSION['uid'])){ ?>
                        <ul style="margin: 0px;padding: 0px;">
                             <?php if(is_array($sessionData)): foreach($sessionData as $k=>$v): ?><li style="line-height: 40px;"><a href="<?php echo u('Home/Content/index',['gid'=>$v['id']]);?>"><?php echo ($v['name']); ?></a></li><?php endforeach; endif; ?>
                        </ul>
                        <?php  }else{ ?>
                        <ul style="margin: 0px;padding: 0px;">
                           <li>
                               请 <a href="<?php echo U('Home/Login/index');?>">登录</a>后查看您的购物车。
                           </li>
                        </ul>

                        <?php } ?>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <!--logo区域结束-->
    <!--导航开始-->
    <div class="navbox">



        
	<script>
		var ajaxUpdateCart = "<?php echo u('ajaxUpdateCart');?>";
	</script>

	</div>
	<!--导航结束-->
	<div class="clear"></div>

	</div>
	<!--头部结束-->
	<!--中间开始-->
	<div id="content">
		<?php if($data['goods']){ ?>
		<form action="<?php echo u('Home/Order/getCartData');?>" method="post">


			<div class="car main">
				<div class="carshop">
					<div class="cartitle">
						<div class="carcheck">
							<div class="checkbox">
								<span class="check checkon" id="allcheck"></span>

							</div>
							全选</div>
						<div class="carname">商品名称</div>
						<div class="carmoney">单价</div>
						<div class="carnum">数量</div>
						<div class="carcount">小计</div>
						<div class="carhandle">操作</div>
					</div>
					<!--购物车循环的数据-->
					<?php if(is_array($data['goods'])): foreach($data['goods'] as $k=>$vo): ?><div class="shopcontent">
							<div class="shopcheck"><div class="checkbox">
								<span class="check checkon"></span>
								<input type="checkbox" name='sid[]' value="<?php echo ($k); ?>" checked="checked" class="checkhide"/>
							</div></div>
							<div class="shopname">
								<div class="carimg">
									<a href=""><img style="width: 50px" src="/shop/shop/<?php echo ($vo['pic']); ?>"/></a>
								</div>
								<p>
									<a href="#"><?php echo ($vo['name']); ?></a><br>
									<?php if(is_array($vo['options'])): foreach($vo['options'] as $kk=>$vv): ?><span><?php echo ($kk); ?>:<?php echo ($vv); ?></span>&nbsp;&nbsp;<?php endforeach; endif; ?>
								</p>
							</div>
							<div class="shopmoney"><?php echo ($vo['price']); ?></div>
							<div class="shopnum">
								<a href="javascript:;" class="num_l" sid="<?php echo ($k); ?>">-</a>
								<input type="text" value="<?php echo ($vo['num']); ?>" />
								<a href="javascript:;" class="num_r" sid="<?php echo ($k); ?>">+</a>
							</div>
							<div class="shopcount"><?php echo ($vo['total']); ?></div>
							<div class="shophandle"><span>x</span></div>
						</div><?php endforeach; endif; ?>



				</div>
				<div class="jiesuan">
					<div class="jixu"><a href="<?php echo u('Home/Index/index');?>">继续购物</a></div>
					<div class="gongji">共<span>10</span>种商品<strong><?php echo ($data['total_rows']); ?></strong>件</div>
					<div class="heji">合计<span><?php echo ($data['total']); ?></span></div>
					<div class="gou">
						<?php if(isset($_SESSION['uid'])){?>
						<input type="submit" value="去结算"/>
						<?php }else{ ?>
						<a style="display: block;width: 200px;text-align: center;color: #fff;line-height: 60px;background: #36aa3f;border: none;" href="<?php echo u('Home/Login/index');?>">去结算</a>
						<?php } ?>


					</div>

				</div>
			</div>




		</form>

		<?php }else{ ?>
		<div style="padding: 120px;text-align: center">购物车中暂无商品,<a href="/shop/shop" style="color:red">继续购物</a></div>
		<?php } ?>
	</div>
	</div>
	<!--中间结束-->




<!--尾部开始-->
<div class="mod-footer">
    <div class="foot-bannerw">
        <div class="foot-banner clearfix">
            <div class="banner-item">
                <a href="#" target="_blank" data-monitor="home_foot_days7"><i class="icon1">7</i>7天无理由退货</a>
            </div>
            <div class="banner-item">
                <a href="#" target="_blank" data-monitor="home_foot_days15"><i class="icon2">15</i>15天免费换货</a>
            </div>
            <div class="banner-item"><i class="icon3">包</i>满99元包邮</div>
            <div class="banner-item">
                <a href="#" target="_blank" data-monitor="home_foot_moblie"><i class="icon4">服</i>手机特色服务</a>
            </div>
        </div>
    </div>
    <div class="foot-containerw">
        <div class="foot-container clearfix">
            <dl class="foot-con"> <dt data-monitor="home_foot_freshman">帮助中心 </dt>
                <dd data-monitor="home_help_freshman">
                    <a target="_blank" href="#" rel="nofollow">用户注册</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">用户登录与密码找回</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">购买指南</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">支付方式</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">配送与说明</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_help">售后服务 </dt>
                <dd data-monitor="home_help_help">
                    <a target="_blank" href="#">7 日无理由退货</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">质量问题 15 日内换货</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">保修条款</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">服务流程</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">安迷之家</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_guide">特色服务 </dt>
                <dd data-monitor="home_help_guide">
                    <a target="_blank" href="#" rel="nofollow">F码通道</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">免费试用</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">360 生态</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">一元夺宝</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_tuiguang">推广合作 </dt>
                <dd data-monitor="home_help_try">
                    <a target="_blank" href="#" rel="nofollow">商品入驻</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">大客户采购</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_try">关注360商城 </dt>
                <dd data-monitor="home_help_try">
                    <a target="_blank" href="#" rel="nofollow">360商城大事记</a>
                </dd>
            </dl>

        </div>
    </div>
    <div class="footer-copyright">冰雨商城 ©2016-2018 BYCMS工作室版权所有 京ICP备000001号-43</div>
</div>
<!--尾部结束-->

<!--右边底部返回顶部-->
<div class="slidebar" id="slidebar">
    <ul>
        <li class="topback">
            <a href="javascript:;"></a>
        </li>
    </ul>
</div>
<!--右边底部返回顶部结束-->


<!--左侧楼层结束-->
</body>

</html>